package com.woniuxy.carrental.service.impl;

import com.woniuxy.carrental.mapper.PermissionMapper;
import com.woniuxy.carrental.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2021-10-14 18:55
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    PermissionMapper permissionMapper;
    @Override
    public List<String> findByAccount(String account) {
        List<String> perms = permissionMapper.getpermissionByaccount(account);
        return perms;
    }
}
